#ifndef FILE_player_t_H
#define FILE_player_t_H

/**
 * A player.
 */
class player_t{
public:
	// defaults to None.
	player_t(){
		v = 0;
	}
	// Do not use.
	player_t(int v){
		this->v = v;
	}
	player_t(const player_t& p){
		v = p.v;
	}
	void change(){
		if(isP1()){
			v = 2;
		}else if(isP2()){
			v = 1;
		}
	}
	bool operator==(const player_t& player){
		return v==player.v;
	}
	bool isP1(){
		return v==1;
	}
	bool isP2(){
		return v==2;
	}
	bool isNone(){
		return v==0;
	}
private:
	int v;
};

#endif // FILE_player_t_H
